package com.augurit.gzcgwsp.qyzz.dao;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import com.augurit.common.base.dao.BaseDao;
import com.augurit.gzcgwsp.qyzz.entity.YwRqRyzzFinalEquipment;
/**
 * /**
 *  企业资质--企业主要设备与检测设备 dao类
 * @author 张军
 *
 */
@Repository
public class YwRqQyzzFinalEquipmentDao extends BaseDao<YwRqRyzzFinalEquipment, Long> {

    public List<YwRqRyzzFinalEquipment> getEquipments(long qyid, String acceptNo) {
       Session session=this.getSession();
       Criteria  criteria=session.createCriteria(YwRqRyzzFinalEquipment.class);
       criteria.add(Restrictions.eq("qyid", qyid));
      // criteria.add(Restrictions.eq("acceptNo", acceptNo));
        return criteria.list();
    }


	
}